#pragma once
#include "stdafx.h"
#include "common.h"
#include "scene.h"
#include "units.h"
//#include "indicator.h"
#include "automatic_item.h"

class Common;
class SceneView;
class QGraphicsSceneMouseEvent;
class automaticItem;
class autConPoint;

class FlowTracker : public QObject
{
	Q_OBJECT
public:
	FlowTracker(Common* _common, SceneView* _scene, automaticItem* _parent, const bool display_title);
	FlowTracker::~FlowTracker();
	void init_model();
	//QString getName();
	//QString getParentName(){ return parent->getName(); }
	automaticItem * getParent(){ return parent; }
	void popupShow(QGraphicsSceneContextMenuEvent *event);
private:
	Common* common;
	SceneView* scene;
	automaticItem* parent;
	vector<autConPoint> *list_of_conPoint;
private slots:
	void removeScriptParameter(const QString &script_name);
	void addScriptParameter(const QString &script_name);
	void addLayer(const double &time);
protected:
	void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);
	void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
signals:

};
